package com.boarsoft.boar.demo.common;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.boarsoft.common.dao.PagedResult;
import com.boarsoft.flow.core.SimpleFlow;
import com.boarsoft.flow.store.SimpleFlowPersister;

@Component("txLogFlowPersister")
public class TxLogFlowPersister implements SimpleFlowPersister {
	private Logger log = LoggerFactory.getLogger(this.getClass());

	@Override
	public void save(SimpleFlow o) {
		log.info("Create trace start log {}", o);
	}

	@Override
	public boolean update(SimpleFlow o) {
		log.info("Create trace end log {}", o);
		return true;
	}

	@Override
	public List<SimpleFlow> list(int revMax1, int revMax2, int revMax3) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public SimpleFlow load(String flowId, String exeId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void delete(SimpleFlow flow) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public SimpleFlow remove(String flowId, String exeId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PagedResult<SimpleFlow> list(String flowId, String key, int pageNo, int pageSize) {
		// TODO Auto-generated method stub
		return null;
	}
}